wayland: Make gdk_wayland_device_pad_set_feedback private
authorMatthias Clasen <mclasen@redhat.com>
Thu, 15 Oct 2020 16:00:00 +0000 (12:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 15 Oct 2020 16:00:00 +0000 (12:00 -0400)
It is not a generally useful api, and awkwardly named.

docs/reference/gdk/gdk4-sections.txt
gdk/wayland/gdkdevice-wayland-private.h
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkwaylanddevice.h
gtk/gtkpadcontroller.c

index 32f36749e2c8343f886376041f33d60ee9bb01ed..9373f948f3be9873a1d627af9cd592c5f70f40aa 100644 (file)
@@ -969,7 +969,6 @@ gdk_wayland_device_get_wl_seat
 gdk_wayland_device_get_wl_pointer
 gdk_wayland_device_get_wl_keyboard
 gdk_wayland_device_get_node_ath
-gdk_wayland_device_pad_set_feedback
 
 <SUBSECTION Monitor>
 gdk_wayland_monitor_get_wl_output
index 3dae42208142f60f46c273a55948da323c9a1335..b22a4f3814df5a8b2b508ec878ff8f4a8c502e88 100644 (file)
@@ -3,11 +3,15 @@
 
 #include "gdkwaylanddevice.h"
 
-void
-gdk_wayland_device_query_state (GdkDevice        *device,
-                                GdkSurface       *surface,
-                                double           *win_x,
-                                double           *win_y,
-                                GdkModifierType  *mask);
+void gdk_wayland_device_query_state (GdkDevice        *device,
+                                     GdkSurface       *surface,
+                                     double           *win_x,
+                                     double           *win_y,
+                                     GdkModifierType  *mask);
+
+void gdk_wayland_device_pad_set_feedback (GdkDevice           *device,
+                                          GdkDevicePadFeature  feature,
+                                          guint                feature_idx,
+                                          const char          *label);
 
 #endif
index cd77fa75f29173d51ef09876c38d9c4d6d3e82f2..867156117535042189a3af3fbad225575bde8191 100644 (file)
@@ -5064,7 +5064,7 @@ gdk_wayland_device_get_node_path (GdkDevice *device)
   return NULL;
 }
 
-/**
+/*<private>
  * gdk_wayland_device_pad_set_feedback:
  * @device: (type GdkWaylandDevice): a %GDK_SOURCE_TABLET_PAD device
  * @feature: Feature to set the feedback label for
index 577f3bbf24f0508a99eb98350d8fe67625390ae1..fbd51b6fe1af1369524b2d67ec83c382f8ebf95f 100644 (file)
@@ -56,12 +56,6 @@ struct wl_keyboard  *gdk_wayland_device_get_wl_keyboard     (GdkDevice *device);
 GDK_AVAILABLE_IN_ALL
 const char          *gdk_wayland_device_get_node_path       (GdkDevice *device);
 
-GDK_AVAILABLE_IN_ALL
-void                 gdk_wayland_device_pad_set_feedback (GdkDevice           *device,
-                                                          GdkDevicePadFeature  feature,
-                                                          guint                feature_idx,
-                                                          const char          *label);
-
 G_END_DECLS
 
 #endif /* __GDK_WAYLAND_DEVICE_H__ */
index dbda9027cd72112413c88fccc5ab033e196b0610..c4871aa9817935cb3aea93413e116f619c780a18 100644 (file)
@@ -77,6 +77,7 @@
 
 #ifdef GDK_WINDOWING_WAYLAND
 #include <gdk/wayland/gdkwayland.h>
+#include "gdk/wayland/gdkdevice-wayland-private.h"
 #endif
 
 struct _GtkPadController {